package com.ctshk.rpc.localfun.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ctshk.common.model.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * @Description
 * @Author wansi <gaylen15527491065@yeah.net>
 * @Date 2021/3/23
 */@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_local_fun_product_cost_strategy_spec_stock")
@ApiModel(value="LocalFunProductCostStrategySpecStock对象", description="产品库存")
public class LocalFunProductCostStrategySpecStock extends BaseEntity {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty(value = "所属策略-成本")
    private Long costId;

    @ApiModelProperty(value = "所属产品")
    private Long productId;

    @ApiModelProperty(value = "属性1ID")
    private Long attr1Id;

    @ApiModelProperty(value = "属性1名称")
    private String attr1Name;

    @ApiModelProperty(value = "属性2ID")
    private Long attr2Id;

    @ApiModelProperty(value = "属性2名称")
    private String attr2Name;

    @ApiModelProperty(value = "成本价")
    private BigDecimal costPrice;

    @ApiModelProperty(value = "总库存")
    private Integer totalStock;

    @ApiModelProperty(value = "剩余库存")
    private Integer surplusStock;

    @ApiModelProperty(value = "已售库存")
    private Integer soldStock;

    @ApiModelProperty(value = "编号")
    private String stockNumber;

    @ApiModelProperty(value = "创建人")
    private Long createId;

    @ApiModelProperty(value = "修改人")
    private Long modifiedId;

    @ApiModelProperty(value = "删除标识")
    private Integer isDeleted;
}
